import { Module } from '@nestjs/common';
import { DeviceService } from './device.service';
import { DeviceController } from './device.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { DeviceHeartSchema } from 'src/schema/DeviceHeart.shcema'
@Module({
  imports: [MongooseModule.forFeature([{ name: 'device_heart', schema: DeviceHeartSchema, collection : 'device_heart' }])],
  providers: [DeviceService],
  controllers: [DeviceController]
})
export class DeviceModule {}
